﻿define([
], function () {

    var controller = BackboneMVC.Controller.extend({
        name: 'solutionManager',
        show: function ($el) {
            require(['views/crud/solution/solutionManager'], function (View) {
                var view = new View();
                view.setElement($el);
                view.render();
            });
        },
        showEdit: function ($el, id) {
            require(['views/crud/solution/companyEdit'], function (View) {
                var view = new View();
                view.constructor({ solutionId: id });
                view.setElement($el);
                view.render();
            });
        },
        showEditPref: function ($el, id) {
            require(['views/crud/solution/companyPrefEdit'], function (View) {
                var view = new View();
                view.constructor({ solutionId: id });
                view.setElement($el);
                view.render();
            });
        },
        addData: function ($el) {
            require(['views/crud/solution/solutionCreate'], function (View) {
                var view = new View();
                view.setElement($el);
                view.render();
            });
        }
    });
    return controller;
});